package com.t10;

/**
 * Created by xuyiwei on 2018/7/21.
 */
public class E2 {
    private String s;
    public E2() {
    }
    public E2(String s) {
        this.s = s;
    }
    public String toString(){

        return "1"+s;
    }

    public static void main(String[] args) {
        Sequence sequence = new Sequence(10);
        for(int i=0;i<10;i++){
            sequence.add(new E2("第"+i+"个成员"));
        }
        Selector selector = sequence.selector();
        while (!selector.end()){
            System.out.println(selector.current());
            selector.next();
        }
    }
}
